package com.b2b.service.impl;

import com.b2b.mapper.QuotationGoodsMapper;
import com.b2b.model.entity.QuotationGoods;
import com.b2b.service.QuotationGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class QuotationGoodsServiceImpl extends BaseServiceImpl<QuotationGoods> implements QuotationGoodsService {
    @Autowired
    QuotationGoodsMapper quotationGoodsMapper;
    public List<QuotationGoods> selectQuotationGoodsByStockId (Integer stockId){
        return quotationGoodsMapper.selectQuotationGoodsByStockId(stockId);
    }
    public List<QuotationGoods> selectQuotationGoodsByQuotationId (Integer quotationId){
        return quotationGoodsMapper.selectQuotationGoodsByQuotationId(quotationId);
    }
}
